bitkeeper revision 1.976.1.1 (40d1bc25lvWeLx83AKQLiEILv4stIg)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 17 Jun 2004 15:43:33 +0000 (15:43 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 17 Jun 2004 15:43:33 +0000 (15:43 +0000)
bug fix to xm_dom_control

tools/examples/xm_dom_control.py

index 8d1885be88a6f836627968868fa6e0a3e3c764b9..2c93a9fed174ebafba221ef5e10cbd78811f1ba0 100755 (executable)
@@ -137,9 +137,8 @@ elif cmd == 'list':
         d['mem'] = int(sxp.child_value(info, 'memory', '0'))
         d['cpu'] = int(sxp.child_value(info, 'cpu', '0'))
         d['state'] = sxp.child_value(info, 'state', '??')
-        d['cpu_time'] = float(sxp.child_value(info, 'cpu_time', '0')
-        print ("%(dom)-4d %(name)-16s %(mem)7d %(cpu)3d %(state)5s %(cpu_time)8.2f"
-               % d)
+        d['cpu_time'] = float(sxp.child_value(info, 'cpu_time', '0'))
+        print ("%(dom)-4d %(name)-16s %(mem)7d %(cpu)3d %(state)5s %(cpu_time)8.2f" % d)
 
 elif cmd == 'unwatch':
     auto_restart_kill(dom)